﻿// JScript 文件
function showtime()
{
var today=new Date();
	var year=today.getYear();
	var month=today.getMonth()+1;
	var date=today.getDate();
	var hour=today.getHours();
	var minute=today.getMinutes();
	var second=today.getSeconds();
	if (month<10) 
	{month="0"+month;}
	if (date<10)
	{date="0"+date;}
	if (hour<10)
	{hour="0"+hour;}
	if (minute<10)
	{minute="0"+minute;}
	if (second<10)
	{second="0"+second;}
var day;
if(today.getDay()==0) day = "星期日";
if(today.getDay()==1) day = "星期一";
if(today.getDay()==2) day = "星期二";
if(today.getDay()==3) day = "星期三";
if(today.getDay()==4) day = "星期四";
if(today.getDay()==5) day = "星期五";
if(today.getDay()==6) day = "星期六";
	tim.innerHTML=year+"年"+month+"月"+date+"日"+""+"　"+day;
	timenum=setTimeout("showtime()",1000);
}